#include <strmif.h>
#include "mkvstreamvideo.hpp"
#include "mkvcontext.hpp"

namespace MkvMux
{

MkvStreamVideo::MkvStreamVideo(MkvContext& c) :
    MkvStream(c)
{
}


void MkvStreamVideo::WriteTrackType()
{
    EbmlIO::File& f = m_context.m_file;
    
    f.WriteID1(0x83);     //track type
    f.Write1UInt(1);
    f.Serialize1UInt(1);  //1=video
}


bool MkvStreamVideo::Wait() const
{
    return m_context.WaitVideo();
}


}  //end namespace MkvMux


